home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DDJMAG
/
DDJ8801.ZIP
/
NARO.ZIP
/
DEMO.C
< prev
next >
Wrap
Text File
|
1987-11-16
|
550b
|
22 lines
/*
This program demonstrates the use of the LOCATE utility. It
contains all of the components of a typical C program to exercise
the startup code and locate utility.
*/
char *ptr = "Class DATA" ; /* Initialized data */
int array[10][10] ; /* Uninitialized data */
main()
{
int i, j ; /* Automatics */
static char *s = "" ; /* Static initialized data */
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++)
array[i][j] = i * j ;
}
strcpy(s, ptr) ; /* Bring in a library function */
}